<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="utf-8" />
        <title>UploadContainer - ESUI Demo</title>
        <meta http-equiv="X-UA-Compatible" content="IE=Edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="../../../dep/esui/3.2.0-beta.2/demo/assets/google-code-prettify/prettify.css"/>
        <link rel="stylesheet" href="assets/themes/standard.less" />
        <!--[if lt IE 9]>
        <link rel="stylesheet" href="../../../dep/esui/3.2.0-beta.2/demo/assets/ie8.css"/>
        <![endif]-->
    </head>
<body>
    <div class="header">
        <h1 id="branding">ESUI UploaderContainer</h1>
    </div>
    <div class="ui-g main-container">
        <div id="side-bar" class="ui-u-1-5">
            <ul id="navigator" class="ui-nav">
            </ul>
        </div>
        <div id="main" class="ui-u-4-5">
            <h2>UploaderContainer</h2>
            <p>UploaderContainer</p>
            <div class="example">
                <div id="container"></div>
            </div>
        </div>
    </div>
    <script src="../../../dep/esui/3.2.0-beta.2/demo/assets/loader/esl.js"></script>
    <script src="config.js"></script>
    <script src="../../../dep/esui/3.2.0-beta.2/demo/demo.js"></script>
    <script src="../../../dep/esui/3.2.0-beta.2/demo/assets/google-code-prettify/prettify.js"></script>
    <script id="main-js">
    require(
        [
            'esui',
            'UploaderContainer',
            'demo',
            'esui/Form',
            'esui/TextBox',
            'esui/Label',
            'esui/Tab',
            'esui/Button'
        ],
        function (ui) {
            ui.init();

            var container = ui.create('UploaderContainer', {
                datasource: [{
                    title: '每日图片',
                    size: '600*90',
                    url: 'http://img4.doubanio.com/mpic/s4521849.jpg'
                }, {
                    title: '每日图片',
                    size: '1000*90',
                    url: 'http://img4.doubanio.com/mpic/s4521849.jpg'
                }, {
                    title: '每日图片',
                    size: '500*90',
                    url: 'http://img4.doubanio.com/mpic/s4521849.jpg'
                }, {

                    title: '每日图片',
                    size: '300*90',
                    url: 'http://img4.doubanio.com/mpic/s4521849.jpg'
                }],
                limit: 60
            });

            container.appendTo(document.getElementById('container'));

            container.on('select', function (e) {
                console.log(e.url);
            });
        }
    );
    </script>
    <script src="sitemap.js"></script>

</body>
</html>
